﻿using System;
namespace Netduino4Fun.DesktopAssistant.Netduino.PC
{
    public interface IConnection
    {
        void Open();
        void Write(byte[] data);
        void WriteLine(string data);
        string Read();
        string ReadLine();

        //event DataReceivedEventHandler DataReceived;
    }
    public delegate void DataReceivedEventHandler(IConnection connection, byte[] data);    
}
